home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
MSDOS
/
(m)aas
/
CHOP2.ARC
/
CHOP.DOC
< prev
next >
Wrap
Text File
|
1985-08-21
|
2KB
|
35 lines
This program splits the input file into smaller files.
USAGE: CHOP FILENAME SIZE -SWITCHES
Version 1.1. Written by W. J. Kennamer and released into the public domain.
FILENAME is any valid MS-DOS filename. Wildcards are not supported.
Output file names will be FILENAME.1, FILENAME.2, etc.
Output files are always terminated with a carriage return and a <ctrl>Z.
SIZE is the desired file size for each new file.
SWITCHES must follow both the FILENAME and SIZE parameters,
and may be entered in any order. Switches may be combined.
Valid SWITCHES are:
-s strict ║ chop file at exact SIZE boundary.
-r return ║ chop file at first carriage return
║ following SIZE characters (default).
-px partition ║ partition file into x equal units.
SIZE is ignored (and may be omitted) if
you choose this option.
An example would be a 5000k file named:file
type CHOP FILE 2500 -s creates as many sections of 2500 as it can , in this
case it would be two partitions of equal size or near equal as CHOP will
deside where the best place to chop a file.
the second example would be simular to the first except that it will break the
file at an exact location, that is at the first carrage return following the
size alocation you specify..ig: CHOP FILE 2500 -r
the last option is chop file into so many parts so that an option of 2 would
make two equal parts..ig: CHOP FILE -p2 .
Please note these are my findings and there may be other variations, but
I found that using CAPITALS did not give the desired or expected results.
LOOK at the source code provided for more info. CHOP.C
at using CAPITALS did no